-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kvm_watcher:添加对容器的系统调用相关信息采集 #840
Conversation
@nanshuaibo review 一下 |
@@ -1,4 +1,4 @@ | |||
// Copyright 2023 The LMP Authors. | |||
// Copyright 2023 The LMP Authors.#define TASK_COMM_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里加了个什么
|
||
// 打印主机名 | ||
//bpf_printk("Hostname: %s\n", data.nodename); | ||
const char target_nodename[] = "yys-virtual-machine"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议target_nodename通过命令行参数传递
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好,我准备后期把这个完善好
通过命名空间的隔离机制,来过滤出容器中的进程,以此就可以只监测容器的系统调用信息。